import Vue from 'vue'
import Router from 'vue-router'
import Hello from '@/components/Hello'
import Login from '../veiw/Login.vue'
import Home from '../veiw/Home.vue'
import page from '../components/Page4.vue'
import Table from '../veiw/Table.vue'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/home',
      name: 'Home',
      component: Home,
      children:[//子路由
              {path:'/table',component:Table}           
        ]
    },
    {
      path: '/page',
      name: 'page',
      component: page
    },
    {
      path: '/',
      name: 'login',
      component: Login
    }
  ]
})
